//
//  XLocalzableTool.h
//  Bees
//
//  Created by Xiaohan on 2018/12/10.
//  Copyright © 2018 xiaohan. All rights reserved.
//

#import <Foundation/Foundation.h>
///本地选择保存的语言
#define kXAppLanguage @"kXAppLanguage"
#define kHansLanguage @"zh-Hans"
#define kEnLanguage @"en"
///语言table
#define kXLocalzableStr @"XLocalzable"
#define XLocalized(key)  [[NSBundle bundleWithPath:[[NSBundle mainBundle] pathForResource:[NSString stringWithFormat:@"%@",[[NSUserDefaults standardUserDefaults] objectForKey:kXAppLanguage]] ofType:@"lproj"]] localizedStringForKey:(key) value:nil table:kXLocalzableStr]
#define kXAppLanguageName [[NSUserDefaults standardUserDefaults] objectForKey:kXAppLanguage]
NS_ASSUME_NONNULL_BEGIN

@interface XLocalzableTool : NSObject
+ (void)initLocalized;
+ (void)changeLocalzable:(NSString*)localzable;
@end

NS_ASSUME_NONNULL_END
